<%@ page import="gdepot.Users" %>



<div class="fieldcontain ${hasErrors(bean: usersInstance, field: 'userName', 'error')} required">
	<label for="userName">
		<g:message code="users.userName.label" default="User Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="userName" maxlength="10" value="${usersInstance?.userName}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: usersInstance, field: 'password', 'error')} required">
%{--	<label for="password">
		<g:message code="users.password.label" default="Password" />
		<span class="required-indicator">*</span>
	</label>--}%
	%{--<g:passwordField name="password" maxlength="30"  value="${usersInstance?.password}" readonly="readonly"/>--}%
%{--	<g:field type="password" name="password" value="${usersInstance?.password}"/>--}%

</div>

<div class="fieldcontain ${hasErrors(bean: usersInstance, field: 'email', 'error')}   required">
	<label for="email">
		<g:message code="users.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="email" name="email" value="${usersInstance?.email} " readonly="readonly"/>

</div>

<div class="fieldcontain ${hasErrors(bean: usersInstance, field: 'phone', 'error')} required">
	<label for="phone">
		<g:message code="users.phone.label" default="Phone" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="phone" pattern="${usersInstance.constraints.phone.matches}"  value="${usersInstance?.phone}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: usersInstance, field: 'address', 'error')} required">
	<label for="address">
		<g:message code="users.address.label" default="Address" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="address" maxlength="200"  value="${usersInstance?.address}"/>

</div>

